<template>
  <div>
    B
    {{ list }}
  </div>
</template>
<script>
const createData = () => {
  return new Promise((resolve, reject) => {
    resolve({
      code: 0,
      msg: 'success',
      list: ['测试数据B'],
    })
  })
}
export default {
  data() {
    return {
      list: [],
    }
  },
  async created() {
    const data = await createData()
    console.log('data:', data)
    this.list = data.list
  },
}
</script>
